const myCard = {
    // 删除
    delCard: function (id) {
        let yes = confirm("确定删除?");
        if (yes) {
            request.ajaxDel("/card/" + id, {
                success: function () {
                    alert("删除成功");
                    window.location.href = "/card/list";
                },
                error: function () {
                    alert("删除失败");
                }
            })
        }
    },
    // 基本信息表单提交
    submitCard: function (form, cb) {
        request.ajaxForm(form, "/card", cb)
    },
    // 补充信息
    addTestInfo: function (data, cb) {
        request.post(data, "/card", cb)
    }
}